home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source text
| default
| |
98%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 68 75 | 72 73 6c 65 79 2e 69 62 |Path: hu|rsley.ib|
|00000010| 6d 2e 63 6f 6d 21 6e 65 | 77 73 0a 46 72 6f 6d 3a |m.com!ne|ws.From:|
|00000020| 20 4d 61 78 20 57 61 74 | 65 72 6d 61 6e 20 3c 64 | Max Wat|erman <d|
|00000030| 77 61 74 65 72 40 77 69 | 67 68 74 2e 68 75 72 73 |water@wi|ght.hurs|
|00000040| 6c 65 79 2e 69 62 6d 2e | 63 6f 6d 3e 0a 4e 65 77 |ley.ibm.|com>.New|
|00000050| 73 67 72 6f 75 70 73 3a | 20 61 6c 74 2e 6d 73 64 |sgroups:| alt.msd|
|00000060| 6f 73 2e 70 72 6f 67 72 | 61 6d 6d 65 72 2c 63 6f |os.progr|ammer,co|
|00000070| 6d 70 2e 6c 61 6e 67 2e | 63 2c 63 6f 6d 70 2e 6c |mp.lang.|c,comp.l|
|00000080| 61 6e 67 2e 70 61 73 63 | 61 6c 2e 6d 69 73 63 0a |ang.pasc|al.misc.|
|00000090| 53 75 62 6a 65 63 74 3a | 20 52 65 3a 20 74 79 70 |Subject:| Re: typ|
|000000a0| 65 63 61 73 74 69 6e 67 | 20 70 72 65 66 65 72 65 |ecasting| prefere|
|000000b0| 6e 63 65 73 0a 44 61 74 | 65 3a 20 54 68 75 2c 20 |nces.Dat|e: Thu, |
|000000c0| 31 38 20 41 70 72 20 31 | 39 39 36 20 31 33 3a 31 |18 Apr 1|996 13:1|
|000000d0| 36 3a 33 30 20 2b 30 31 | 30 30 0a 4f 72 67 61 6e |6:30 +01|00.Organ|
|000000e0| 69 7a 61 74 69 6f 6e 3a | 20 49 42 4d 20 55 4b 20 |ization:| IBM UK |
|000000f0| 4c 61 62 6f 72 61 74 6f | 72 69 65 73 20 4c 74 64 |Laborato|ries Ltd|
|00000100| 2e 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 33 |..Messag|e-ID: <3|
|00000110| 31 37 36 33 32 39 45 2e | 34 31 43 36 40 77 69 67 |176329E.|41C6@wig|
|00000120| 68 74 2e 68 75 72 73 6c | 65 79 2e 69 62 6d 2e 63 |ht.hursl|ey.ibm.c|
|00000130| 6f 6d 3e 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |om>.Refe|rences: |
|00000140| 3c 34 6c 30 32 30 67 24 | 69 39 6a 40 73 72 76 72 |<4l020g$|i9j@srvr|
|00000150| 31 2e 65 6e 67 69 6e 2e | 75 6d 69 63 68 2e 65 64 |1.engin.|umich.ed|
|00000160| 75 3e 20 3c 33 31 37 33 | 45 38 34 32 2e 37 44 31 |u> <3173|E842.7D1|
|00000170| 37 40 77 69 6c 6c 6f 77 | 73 2e 63 6f 6d 3e 0a 52 |7@willow|s.com>.R|
|00000180| 65 70 6c 79 2d 54 6f 3a | 20 64 77 61 74 65 72 40 |eply-To:| dwater@|
|00000190| 68 75 72 73 6c 65 79 2e | 69 62 6d 2e 63 6f 6d 0a |hursley.|ibm.com.|
|000001a0| 4e 4e 54 50 2d 50 6f 73 | 74 69 6e 67 2d 48 6f 73 |NNTP-Pos|ting-Hos|
|000001b0| 74 3a 20 77 69 67 68 74 | 2e 68 75 72 73 6c 65 79 |t: wight|.hursley|
|000001c0| 2e 69 62 6d 2e 63 6f 6d | 0a 4d 69 6d 65 2d 56 65 |.ibm.com|.Mime-Ve|
|000001d0| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 43 6f 6e 74 65 |rsion: 1|.0.Conte|
|000001e0| 6e 74 2d 54 79 70 65 3a | 20 74 65 78 74 2f 70 6c |nt-Type:| text/pl|
|000001f0| 61 69 6e 3b 20 63 68 61 | 72 73 65 74 3d 75 73 2d |ain; cha|rset=us-|
|00000200| 61 73 63 69 69 0a 43 6f | 6e 74 65 6e 74 2d 54 72 |ascii.Co|ntent-Tr|
|00000210| 61 6e 73 66 65 72 2d 45 | 6e 63 6f 64 69 6e 67 3a |ansfer-E|ncoding:|
|00000220| 20 37 62 69 74 0a 58 2d | 4d 61 69 6c 65 72 3a 20 | 7bit.X-|Mailer: |
|00000230| 4d 6f 7a 69 6c 6c 61 20 | 32 2e 30 31 20 28 58 31 |Mozilla |2.01 (X1|
|00000240| 31 3b 20 49 3b 20 41 49 | 58 20 32 29 0a 0a 54 61 |1; I; AI|X 2)..Ta|
|00000250| 72 61 6e 67 20 44 65 73 | 68 70 61 6e 64 65 20 77 |rang Des|hpande w|
|00000260| 72 6f 74 65 3a 0a 3e 20 | 0a 3e 20 48 41 53 44 49 |rote:.> |.> HASDI|
|00000270| 20 52 4f 44 5a 4d 41 4e | 4e 20 48 41 53 48 49 4d | RODZMAN|N HASHIM|
|00000280| 20 77 72 6f 74 65 3a 0a | 3e 20 3e 0a 3e 20 3e 20 | wrote:.|> >.> > |
|00000290| 49 66 20 79 6f 75 20 68 | 61 76 65 20 61 20 63 68 |If you h|ave a ch|
|000002a0| 6f 69 63 65 2c 20 64 6f | 20 79 6f 75 20 77 61 6e |oice, do| you wan|
|000002b0| 74 20 74 68 65 20 70 61 | 72 65 74 68 65 73 69 73 |t the pa|rethesis|
|000002c0| 20 70 61 69 72 20 6f 76 | 65 72 20 74 68 65 20 63 | pair ov|er the c|
|000002d0| 61 73 74 65 72 0a 3e 20 | 3e 20 28 43 2d 73 74 79 |aster.> |> (C-sty|
|000002e0| 6c 65 29 20 6f 72 20 6f | 76 65 72 20 74 68 65 20 |le) or o|ver the |
|000002f0| 63 61 73 74 65 65 20 28 | 50 61 73 63 61 6c 2d 73 |castee (|Pascal-s|
|00000300| 74 79 6c 65 29 3f 20 65 | 67 2e 2e 2e 0a 3e 20 3e |tyle)? e|g....> >|
|00000310| 0a 3e 20 3e 20 61 20 3d | 20 28 69 6e 74 29 62 3b |.> > a =| (int)b;|
|00000320| 20 2f 2a 20 63 61 73 74 | 20 74 6f 20 69 6e 74 20 | /* cast| to int |
|00000330| 2a 2f 0a 3e 20 3e 20 61 | 20 3d 20 69 6e 74 28 62 |*/.> > a| = int(b|
|00000340| 29 3b 20 2f 2a 20 61 6c | 6c 6f 77 61 62 6c 65 20 |); /* al|lowable |
|00000350| 69 6e 20 43 2b 2b 20 2a | 2f 0a 3e 20 3e 0a 3e 20 |in C++ *|/.> >.> |
|00000360| 0a 3e 20 49 20 77 6f 75 | 6c 64 20 70 72 65 66 65 |.> I wou|ld prefe|
|00000370| 72 20 74 68 65 20 50 61 | 73 63 61 6c 20 73 74 79 |r the Pa|scal sty|
|00000380| 6c 65 20 77 68 65 72 65 | 20 74 68 65 20 70 61 72 |le where| the par|
|00000390| 65 6e 74 68 65 73 69 73 | 20 67 6f 20 61 72 6f 75 |enthesis| go arou|
|000003a0| 6e 64 20 74 68 65 0a 3e | 20 74 68 69 6e 67 20 62 |nd the.>| thing b|
|000003b0| 65 69 6e 67 20 63 61 73 | 74 65 64 2e 20 20 54 68 |eing cas|ted. Th|
|000003c0| 69 73 20 69 73 20 73 6f | 20 74 68 61 74 20 74 68 |is is so| that th|
|000003d0| 65 20 63 61 73 74 20 6c | 6f 6f 6b 73 20 6c 69 6b |e cast l|ooks lik|
|000003e0| 65 20 61 20 66 75 6e 63 | 74 69 6f 6e 0a 3e 20 61 |e a func|tion.> a|
|000003f0| 6e 64 20 69 74 20 74 68 | 65 6e 20 73 65 65 6d 73 |nd it th|en seems|
|00000400| 20 63 6f 6e 73 69 73 74 | 65 6e 74 20 77 68 65 6e | consist|ent when|
|00000410| 20 6f 76 65 72 72 69 64 | 69 6e 67 20 74 68 65 20 | overrid|ing the |
|00000420| 63 61 73 74 20 6f 70 65 | 72 61 74 6f 72 2e 0a 0a |cast ope|rator...|
|00000430| 57 68 79 20 64 6f 20 79 | 6f 75 20 77 61 6e 74 20 |Why do y|ou want |
|00000440| 69 74 20 74 6f 20 6c 6f | 6f 6b 20 6c 69 6b 65 20 |it to lo|ok like |
|00000450| 61 20 66 75 6e 63 74 69 | 6f 6e 3f 20 54 68 69 73 |a functi|on? This|
|00000460| 20 6d 61 6b 65 73 20 69 | 74 20 6d 69 73 6c 65 61 | makes i|t mislea|
|00000470| 64 69 6e 67 2e 0a 57 68 | 61 74 20 64 6f 20 79 6f |ding..Wh|at do yo|
|00000480| 75 20 6d 65 61 6e 20 62 | 79 20 27 6f 76 65 72 72 |u mean b|y 'overr|
|00000490| 69 64 69 6e 67 20 74 68 | 65 20 63 61 73 74 20 6f |iding th|e cast o|
|000004a0| 70 65 72 61 74 6f 72 27 | 3f 0a 0a 49 6e 20 43 20 |perator'|?..In C |
|000004b0| 79 6f 75 20 63 61 6e 20 | 68 61 76 65 20 61 20 74 |you can |have a t|
|000004c0| 79 70 65 20 6f 66 20 61 | 6e 79 20 6e 61 6d 65 2c |ype of a|ny name,|
|000004d0| 20 73 6f 20 69 74 20 69 | 73 20 76 65 72 79 20 6d | so it i|s very m|
|000004e0| 69 73 6c 65 61 64 69 6e | 67 20 74 6f 20 68 61 76 |isleadin|g to hav|
|000004f0| 65 20 61 0a 63 61 73 74 | 20 6c 6f 6f 6b 20 6c 69 |e a.cast| look li|
|00000500| 6b 65 20 61 20 66 75 6e | 63 74 69 6f 6e 2e 20 4f |ke a fun|ction. O|
|00000510| 6e 20 6d 79 20 63 6f 6d | 70 69 6c 65 72 20 69 74 |n my com|piler it|
|00000520| 20 66 6c 61 67 73 20 69 | 74 20 61 73 20 61 20 73 | flags i|t as a s|
|00000530| 79 6e 74 61 78 20 65 72 | 72 6f 72 0a 61 6e 79 77 |yntax er|ror.anyw|
|00000540| 61 79 20 28 69 73 20 74 | 68 69 73 20 74 68 65 20 |ay (is t|his the |
|00000550| 73 61 6d 65 20 77 69 74 | 68 20 6f 74 68 65 72 73 |same wit|h others|
|00000560| 3f 29 20 2d 20 73 6f 20 | 49 20 61 6d 20 71 75 69 |?) - so |I am qui|
|00000570| 74 65 20 68 61 70 70 79 | 20 74 68 61 74 20 74 68 |te happy| that th|
|00000580| 69 73 0a 69 73 6e 27 74 | 20 61 6c 6c 6f 77 65 64 |is.isn't| allowed|
|00000590| 2e 20 43 6f 6e 73 69 64 | 65 72 20 74 68 65 20 66 |. Consid|er the f|
|000005a0| 6f 6c 6c 6f 77 69 6e 67 | 20 3a 0a 0a 23 69 6e 63 |ollowing| :..#inc|
|000005b0| 6c 75 64 65 20 3c 73 74 | 64 69 6f 2e 68 3e 0a 0a |lude <st|dio.h>..|
|000005c0| 74 79 70 65 64 65 66 20 | 64 6f 75 62 6c 65 20 73 |typedef |double s|
|000005d0| 69 6e 3b 0a 0a 2e 0a 2e | 0a 2e 20 6c 6f 61 64 73 |in;.....|.. loads|
|000005e0| 20 6f 66 20 73 6f 75 72 | 63 65 20 6c 69 6e 65 73 | of sour|ce lines|
|000005f0| 2e 2e 2e 2e 0a 2e 0a 2e | 0a 0a 69 6e 74 20 6d 61 |........|..int ma|
|00000600| 69 6e 28 20 76 6f 69 64 | 20 29 0a 7b 0a 0a 20 20 |in( void| ).{.. |
|00000610| 66 6c 6f 61 74 20 66 20 | 3d 20 33 2e 31 32 33 34 |float f |= 3.1234|
|00000620| 38 35 3b 0a 0a 20 20 70 | 72 69 6e 74 66 28 20 22 |85;.. p|rintf( "|
|00000630| 25 66 22 2c 20 73 69 6e | 28 66 29 20 29 3b 0a 0a |%f", sin|(f) );..|
|00000640| 7d 0a 0a 6c 6f 6f 6b 73 | 20 6c 69 6b 65 20 73 69 |}..looks| like si|
|00000650| 6e 28 66 29 20 69 73 20 | 74 61 6b 69 6e 67 20 74 |n(f) is |taking t|
|00000660| 68 65 20 73 69 6e 65 20 | 6f 66 20 66 20 62 75 74 |he sine |of f but|
|00000670| 20 69 6e 20 66 61 63 74 | 20 69 74 20 69 73 20 6d | in fact| it is m|
|00000680| 65 61 6e 74 20 74 6f 0a | 63 61 73 74 20 69 74 20 |eant to.|cast it |
|00000690| 74 6f 20 61 20 64 6f 75 | 62 6c 65 2e 0a 0a 45 76 |to a dou|ble...Ev|
|000006a0| 65 6e 20 69 66 20 69 74 | 20 64 69 64 20 63 6f 6d |en if it| did com|
|000006b0| 70 69 6c 65 2c 20 49 20 | 77 6f 75 6c 64 6e 27 74 |pile, I |wouldn't|
|000006c0| 20 70 61 73 73 20 74 68 | 69 73 20 69 6e 20 61 20 | pass th|is in a |
|000006d0| 63 6f 64 65 20 69 6e 73 | 70 65 63 74 69 6f 6e 2e |code ins|pection.|
|000006e0| 0a 0a 55 6e 6c 65 73 73 | 20 79 6f 75 20 63 61 6e |..Unless| you can|
|000006f0| 20 67 69 76 65 20 6d 65 | 20 61 20 67 6f 6f 64 20 | give me| a good |
|00000700| 72 65 61 73 6f 6e 20 74 | 68 69 73 20 69 73 20 75 |reason t|his is u|
|00000710| 73 65 66 75 6c 2e 0a 0a | 4d 61 78 2e 0a 2d 2d 20 |seful...|Max..-- |
|00000720| 0a 20 20 20 20 5f 5f 5f | 20 20 20 20 20 20 20 20 |. ___| |
|00000730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 6d 61 | | ma|
|00000740| 69 6c 74 6f 3a 64 77 61 | 74 65 72 40 68 75 72 73 |ilto:dwa|ter@hurs|
|00000750| 6c 65 79 2e 69 62 6d 2e | 63 6f 6d 0a 20 20 2f 20 |ley.ibm.|com. / |
|00000760| 20 2f 20 20 2f 20 20 5f | 20 20 20 20 20 20 20 2f | / / _| /|
|00000770| 20 20 20 20 20 2f 20 20 | 5f 20 20 5f 5f 20 5f 5f | / |_ __ __|
|00000780| 20 20 20 5f 20 20 20 5f | 5f 20 20 20 5f 0a 20 2f | _ _|_ _. /|
|00000790| 20 20 2f 20 20 2f 20 2f | 5f 2f 20 7c 2f 20 20 2f | / / /|_/ |/ /|
|000007a0| 20 20 2f 20 20 2f 20 2f | 5f 2f 20 20 2f 20 20 2f | / / /|_/ / /|
|000007b0| 5f 20 20 20 2f 5f 2f 20 | 2f 20 2f 20 2f 20 2f 5f |_ /_/ |/ / / /_|
|000007c0| 2f 20 2f 7c 20 2f 0a 2f | 20 20 2f 20 20 2f 20 2f |/ /| /./| / / /|
|000007d0| 20 20 2f 20 2f 7c 20 20 | 2f 5f 2f 5f 2f 20 2f 20 | / /| |/_/_/ / |
|000007e0| 20 2f 20 20 2f 20 20 2f | 5f 20 20 2f 20 20 7c 20 | / / /|_ / | |
|000007f0| 20 2f 20 2f 20 2f 20 2f | 20 20 2f 20 2f 20 7c 2f | / / / /| / / |/|
|00000800| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+